import { makeMap, query } from "../util/index.js";

export function idToTemplate(el) {
  el = query(el);
  return el && el.innerHTML;
}

export const isHTMLTag = makeMap("div,p,span,img,input,button");

export const isSVG = makeMap("svg");

export const isReservedTag = (tag) => isHTMLTag(tag) || isSVG(tag);
